<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>明细</title>
		<script type="text/javascript" language="javascript" src="../script/common.js"></script>
		<script type="text/javascript" language="javascript" src="../script/common_stat.js"></script>
		<script language="javascript">
		var pivot
		function load(){
			Eui.showNavigation();
			//drawTable();
			//doQuery();
		}
		
		function drawTable(){			
			pivot = new Pivot('pivottable','pivot');			
			var qObj = {
				cube:"[ClearingResults]",
				columns:"{[Measures].[Amount],[Measures].[Volumn],[Measures].[Count]}",
				rows:"[time][3];[TradeType][2];[TradeStatus];",
				//slice:"[TradeType].[110]",
				//rows:"[time][2];[organization][3];[TradeType];[TradeStatus];[CardUserLevel];[CardUserType];[Bank]"
				//rows:"[CardType][2];[AccountType][2];[GoodsCategory]",
				//slice:"[time].[2008].[1].[1].[4]",
				
				nonEmpty:true
			}
			pivot.setQueryObj(qObj);
		}		
		
		function doQuery(){
			pivot.query();
		}
		
		</script>
	</head>
	
	<body onload="load()">
		<div class="nav"><div id="nav">&nbsp;</div></div>

		<!--列表内容-->
		<div>PivotTable <button onclick="doQuery()">doQuery</button>	
		<button onclick="reload();">Reload OLAP</button>
		<br>		
		<div align="center" id="pivottable"></div>
	</body>
</html>
